{template 'common/header'}
<ol class="breadcrumb we7-breadcrumb">
	<a href="{php echo $this->createWebUrl('recruitlist');}"><i class="wi wi-back-circle"></i> </a>
	<li>
		<a href="{php echo $this->createWebUrl('recruitlist');}">招聘管理</a>
	</li>
	<li>
		招聘列表
	</li>
</ol>
<div class="clearfix">
			<form action="{php echo $this->createWebUrl('recruitlist')}" method="get">
				<input type="hidden" name="c" value="site">
				<input type="hidden" name="a" value="entry">
				<input type="hidden" name="do" value="recruitlist">
				<input type="hidden" name="m" value="{$_GPC['m']}">
				<input type="hidden" name="add_time" value="{$_GPC['add_time']}">
				<div class="form-group">
					<label class="col-sm-2 control-label">添加时间</label>
					<div class="col-sm-8">
						<div class="btn-group we7-btn-group">
							<a href="{php echo filter_url('add_time:0');}" class="btn {if $_GPC['add_time'] == 0}btn-primary{else}btn-default{/if}">不限</a>
							<a href="{php echo filter_url('add_time:3');}" class="btn {if $_GPC['add_time'] == 3}btn-primary{else}btn-default{/if}">三天内</a>
							<a href="{php echo filter_url('add_time:7');}" class="btn {if $_GPC['add_time'] == 7}btn-primary{else}btn-default{/if}">一周内</a>
							<a href="{php echo filter_url('add_time:30');}" class="btn {if $_GPC['add_time'] == 30}btn-primary{else}btn-default{/if}">30天内</a>
							<a href="{php echo filter_url('add_time:90');}" class="btn {if $_GPC['add_time'] == 90}btn-primary{else}btn-default{/if}">90天内</a>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">招聘标题</label>
					<div class="input-group col-sm-4 pull-left">
						<input class="form-control" name="recruit_title" type="text" value="{$_GPC['recruit_title']}">
						<div class="input-group-btn">
							<button type='submit' class="btn btn-default"><i class="fa fa-search"></i> </button>
						</div>
					</div>
					<div class="pull-right">
						<a href="{php echo $this->createWebUrl('recruitedit');}" class="btn btn-primary btn-sm">添加招聘</a>
					</div>
				</div>
			</form>
			<table class="table table-bordered">
				<thead>
		            <tr>
						<th>招聘标题</th>
						<th>薪资</th>
						<th>简介</th>
	                    <th>是否显示</th>
						<th>添加时间</th>
						<th>操作</th>
					</tr>
		        </thead>
				 <tbody>
			{loop $recruit_list $index $recruit}
				<tr>
					<td>{$recruit['recruit_title']}</td>
					<td>{$recruit['recruit_wages']}</td>
					<td>{$recruit['recruit_desc']}</td>
					<td>
						{if $recruit['is_show'] == 1}
						<span class="label label-success">是</span>
						{else}
						<span class="label label-danger">否</span>
						{/if}
					</td>
					<td>{$recruit['add_time']}</td>
					<td>
						<a href="{php echo $this->createWebUrl('recruitedit', array('recruit_id' => $recruit['recruit_id']));}" class="label label-success">编辑</a>
						<a href="{php echo $this->createWebUrl('recruitdel', array('recruit_id' => $recruit['recruit_id']));}" class="label label-danger" onclick="if(!confirm('确定删除吗')) return false;">删除</a>
					</td>
				</tr>
			{/loop}
			</tbody>
		</table>
		<div class="text-right">
			{$pager}
		</div>
	</div>

{template 'common/footer'}
